/*
 * Copyright (c) 2018-2999 九五云信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.coupon.comment.service;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.param.*;
import com.yami.shop.coupon.comment.model.CouponUser;

/**
 * @author lgh on 2018/12/27.
 */
public interface CouponUserService extends IService<CouponUser> {

//    List<CouponUser> getCouponAndCouponUserByCouponUserIds(List<Long> couponUserIds);

    void deleteUnValidTimeCoupons(Date date);

    void updateStatusByTime(Date now);

    void cancelOrder(String userId, String orderNumber);

    /**
     * 卡券分析，卡券昨日关键指标
     */
    List<CouponAnalysisParam> getCouponAnalysis(ProdEffectParam param);

    Integer countMemberGetCoupon(CustomerReqParam param);

    Integer countMemberCouponByParam(MemberReqParam param);

    CouponUserParam getCouponCountByUserId(String userId);
}
